﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="MatchUser.aspx.cs" Inherits="SoccerEvaluator.WebSite.MatchUser" %>


<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <h1>
        
    </h1>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table>
        <tr>
            <td colspan="2" align="left">
                <a href="MatchList.aspx">
                    <asp:Label ID="Label19" runat="server" Text="Lista de Partidos">
                    </asp:Label>
                </a>| <a href="MatchUsers.aspx">
                    <asp:Label ID="Label18" runat="server" Text="<% $ Resources:Resource, Users %>">
                    </asp:Label>
                    |</a>|<a href="Match.aspx">
                        <asp:Label ID="Label20" runat="server" Text="<% $ Resources:Resource, Scores %>">
                        </asp:Label>
                    </a>|</a>|<a href="MatchSummary.aspx">
                        <asp:Label ID="Label129" runat="server" Text="<% $ Resources:Resource, Summary %>">
                        </asp:Label>
                    </a>
            </td>
        </tr>
        <tr>
            <td class="ScoreLine">
                <asp:Label runat="server" ID="Label12" Text="<%$ Resources:Resource,User %>" Width="200px"></asp:Label>
                :
                <asp:Label runat="server" ID="lblUserName" Text="0"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="ScoreLine">
                <asp:Label runat="server" ID="Label10" Text="<%$ Resources:Resource,ExactScore %>"
                    Width="200px"></asp:Label>
                :
                <asp:Label runat="server" ID="lblExactScore" Text="0"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="ScoreLine">
                <asp:Label runat="server" ID="Label11" Text="<%$ Resources:Resource,CatchScore %>"
                    Width="200px"></asp:Label>
                :
                <asp:Label runat="server" ID="lblCatchScore" Text="0"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="border-top: 3px; border-top-color: Red" class="ScoreLine">
                <asp:Label runat="server" ID="Label13" Text="<%$ Resources:Resource,Total %>" Width="200px"></asp:Label>
                :
                <asp:Label runat="server" ID="lblTotalScore" Text="0"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="ScoreLine">
                <asp:Label runat="server" ID="Label14" Text="<%$ Resources:Resource,Matchs %>" Width="200px"></asp:Label>
                <asp:Label runat="server" ID="txtRowstoEvaluate" Text="0"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <table width="100%" height="100%">
                    <tr>
                        <td>
                            <asp:Label ID="Label22" runat="server" Text="<% $ Resources:Resource, Date %>"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <asp:Panel runat="server" ID="Panel1" CssClass="ScoreLine" Width="600px">
                                <table>
                                    <tr height="20px">
                                        <td height="100%">
                                            <asp:Label ID="Label16" runat="server" Text="<% $ Resources:Resource, Team %>"></asp:Label>
                                            <asp:DropDownList ID="cmbTeam" runat="server" Width="150px" AutoPostBack="True" OnSelectedIndexChanged="cmbTeam_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr height="100%">
                                        <td>
                                            <asp:Label ID="Label15" runat="server" Text="<% $ Resources:Resource, Played %>"></asp:Label>
                                            <asp:DropDownList ID="cmbPlayed" runat="server" Width="150px" AutoPostBack="true"
                                                OnSelectedIndexChanged="cmbPlayed_SelectedIndexChanged">
                                                <asp:ListItem Value="-1" Text="<% $ Resources:Resource, All %>" Selected="True"></asp:ListItem>
                                                <asp:ListItem Value="1" Text="<% $ Resources:Resource, Played %>"></asp:ListItem>
                                                <asp:ListItem Value="0" Text="<% $ Resources:Resource, NonPlayed %>"></asp:ListItem>
                                            </asp:DropDownList>
                                            <br />
                                            <asp:Button ID="cmdUpdate" runat="server" OnClick="cmdUpdate_Click" Text="<% $ Resources:Resource,ShowAll %>" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Repeater runat="server" ID="lstScores" OnItemDataBound="lstScores_ItemDataBound">
                    <HeaderTemplate>
                        <table border="0" bordercolor="gray" cellpadding="3" cellspacing="0">
                            <tr>
                                <td class="TableTitles">
                                    #
                                </td>
                                <td>
                                </td>
                                <td align="center">
                                    <asp:Label ID="Label8" runat="server" Text="<% $ Resources:Resource, Date %>" CssClass="TableTitles"></asp:Label>
                                </td>
                                <td align="center">
                                    <asp:Label ID="Label2" runat="server" Text="<% $ Resources:Resource, Location %>"
                                        CssClass="TableTitles"></asp:Label>
                                </td>
                                <td>
                                </td>
                                <td align="center">
                                    <asp:Label ID="Label4" runat="server" Text="<% $ Resources:Resource, Team %>" CssClass="TableTitles"></asp:Label>
                                </td>
                                <td align="center">
                                    <asp:Label ID="Label5" runat="server" Text="<% $ Resources:Resource, Goals %>" CssClass="TableTitles"></asp:Label>
                                </td>
                                <td>
                                </td>
                                <td align="center">
                                    <asp:Label ID="Label6" runat="server" Text="<% $ Resources:Resource, Team %>" CssClass="TableTitles"></asp:Label>
                                </td>
                                <td align="center">
                                    <asp:Label ID="Label7" runat="server" Text="<% $ Resources:Resource, Goals %>" CssClass="TableTitles"></asp:Label>
                                </td>
                            </tr>
                    </HeaderTemplate>
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                    <ItemTemplate>
                        <tr runat="server" id="row">
                            <td align="center">
                                <%# Container.ItemIndex + 1 %>
                            </td>
                            <td width="100px" align="center">
                                <a href='MatchStatistics.aspx?Index=<%#DataBinder.Eval(Container.DataItem,"Index") %>'>
                                    <img src="Images/stadium.gif" />
                                </a>
                            </td>
                            <td align="left" nowrap="nowrap">
                                <asp:Label runat="server" ID="Label9" Text='<%#DataBinder.Eval(Container.DataItem,"Date","{0:f}") %>'></asp:Label>
                            </td>
                            <td align="left">
                                <asp:Label runat="server" ID="lblLocation" Text='<%#DataBinder.Eval(Container.DataItem,"Location") %>'></asp:Label>
                            </td>
                            <td align="right" nowrap="nowrap">
                                <img src='Teams/<%#DataBinder.Eval(Container.DataItem,"Local")%>.jpg' border="1" />
                            </td>
                            <td align="center">
                                <asp:Label runat="server" ID="lblVisitor" Text='<%#DataBinder.Eval(Container.DataItem,"Local") %>'></asp:Label>
                            </td>
                            <td align="center">
                                <asp:Label runat="server" ID="Label3" Text='<%#DataBinder.Eval(Container.DataItem,"LocalGoals") %>'></asp:Label>
                            </td>
                            <td align="right" nowrap="nowrap">
                                <img src='Teams/<%#DataBinder.Eval(Container.DataItem,"Visitor")%>.jpg' border="1" />
                            </td>
                            <td align="left">
                                <asp:Label runat="server" ID="Label1" Text='<%#DataBinder.Eval(Container.DataItem,"Visitor") %>'></asp:Label>
                            </td>
                            <td align="center">
                                <asp:Label runat="server" ID="Label17" Text='<%#DataBinder.Eval(Container.DataItem,"VisitorGoals") %>'></asp:Label>
                            </td>
                        </tr>
                        <tr height="3">
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </td>
        </tr>
    </table>
</asp:Content>
